#include "VertexTypes.h"

const std::vector<VertexLayout> VertexPos::inputLayout =
    {
        {"POSITION", 0, 3, GL_FLOAT, GL_FALSE, offsetof(VertexPos, pos)},
};

const std::vector<VertexLayout> VertexPosNormalTex::inputLayout =
    {
        {"POSITION", 0, 3, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTex, pos)},
        {"NORMAL", 1, 3, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTex, normal)},
        {"TEXCOORD", 2, 2, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTex, tex)},
};


std::vector<VertexLayout> VertexPosNormalTexBone2::inputLayout = {
	{"POSITION", 0,3, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTexBone2, pos) },
	{"NORMAL", 1,3, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTexBone2, normal) },
	{"TEXCOORD", 2,2, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTexBone2, tex) },

	{"BONES1", 3, 4, GL_INT, GL_FALSE, offsetof(VertexPosNormalTexBone2, bones1) },
	{"WEIGHTS1", 4, 4, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTexBone2, weights1) },
	{"BONES2", 5, 4, GL_INT, GL_FALSE, offsetof(VertexPosNormalTexBone2, bones2) },
	{"WEIGHTS2", 6, 4, GL_FLOAT, GL_FALSE, offsetof(VertexPosNormalTexBone2, weights2) },
};